#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QDebug>
#include <QMouseEvent>
#include <QGridLayout>


class Widget : public QGraphicsView
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
     QGraphicsScene *scene;

private:

    void drowCircle(const QPoint &);
    void drowSquare(const QPoint &);
protected:
    void mousePressEvent(QMouseEvent*);
};




#endif // MAINWINDOW_H
